package co.fitstart.market.dao;

import com.demo2do.core.persistence.annotation.Dynamic;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;

import co.fitstart.entity.market.Questionnaire;

@Dynamic("hibernate")
public interface QuestionnaireDao {
    
    /**
     * 
     * @param userOpenid
     * @return
     */
    @Query("FROM Questionnaire WHERE disabled = false AND userOpenid = :userOpenid")
    public Questionnaire load(@Variable("userOpenid") String userOpenid);

}
